<template>
	<view class="l_pages">
		<j-navbar :title="'客服二维码'"></j-navbar>
		<view class="page_container">
			<view class="img_con" @click="showimg">
				<view class="img_box"><vimage :src="mallBase.customer_pic"></vimage></view>
				<text>长按识别二维码</text>
			</view>
			
		</view>
	</view>
</template>

<script>
import {mapState, mapMutations} from 'vuex';
import util from '@/common/util.js';
export default {
	data() {
		return {};
	},
	computed: {
		...mapState({
			mallBase: state => state.mallBase
		})
	},
	methods: {
		showimg(){
			// #ifdef MP-WEIXIN
				// let url = util.getimgurl(this.mallBase.customer_pic);
				// let urls=[]
				// urls.push(url)
				// uni.previewImage({
				// 	urls:urls
				// })
			// #endif
			
		}
	}
};
</script>

<style>
.page_container {
	flex-direction: column;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	
}
.img_con{
	width: 500rpx;
	flex-direction: column;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border-radius: 20rpx;
	padding:50rpx 0;
}
.img_box {
	width: 400rpx;
	height: 400rpx;
	margin-bottom: 20rpx;
}
</style>
